<?php

class System {
	
	private $initialize = false;
	
	private $User = array();
	
	private $Cookies = array();
	
	public function __construct() {
		
		global $System;
		
		if($this->initialize != false) {
			
			throw new FatalError(' You cannot reconstruct the System without destructing the System safely ');
			
		}
		
		$php_vers = explode('.', PHP_VERSION);
		
		if($php_vers['0'] != '5' || php_vers['1'] < 2) {
			
			throw new FatalError(' Please update your PHP complier before using the System . Current Complier: ' . PHP_VERSION . ' ');
			
		}
		
		$coreClasses = array('Database',
							 'Input',
							 'Template',
							 'Session',
							 'Langauge')
		
		$this->loadClass($coreClasses);
		
		$this->initialize = true;
		
		
	}
	
	
		
		